package com.whstudio.util.mvc.data.sql;

import java.sql.SQLException;
import java.util.List;

public interface ISql {
	public final static String SQL_SELECT="SELECT";
	public final static String SQL_FROM="FROM";
	public final static String SQL_WHERE="WHERE";
	public final static String SQL_LIKE="LIKE";
	public final static String SQL_AND="AND";
	
	public final static char SQL_BLANK=' ';
	public final static char SQL_EQUAL='=';
	public final static char SQL_COMMA=',';
	
	public String toString();
	public ISql addColumn(String e);
	public ISql addTable(String e);
	public ISql addArg(Arg e);
	public ISql addArgs(Arg[] e);
	public ISql setArgs(List<Arg> e);
	public ISql setSubSql(ISql e);
	public ISql setEnds(String ends);
	public List<Arg> getArgs();
	public ISql build() throws SQLException;
	public void setSql(String sqlString);
}
